<div class="ltem_select font12">
  <div class="sli <if condition="$Think.get.order eq ''">select</if>" data-href="{:query_url('bbs/lists', array('order'=>'', 'sort_tit'=>'新回复'))}">新回复</div>
  <div class="sli <if condition="$Think.get.order eq 'id'">select</if>" data-href="{:query_url('bbs/lists', array('order'=>'id', 'sort_tit'=>'新主题'))}">新主题</div>
  <div class="sli <if condition="$Think.get.order eq 'click'">select</if>" data-href="{:query_url('bbs/lists', array('order'=>'click', 'sort_tit'=>'热门'))}">热门</div>
 
</div>

<script>
$(function(){
    $(".ltem_select>.sli").on('click', function () {
        var href = $(this).data('href');
        location.href = href;
    });
});
</script>
